
package org.zfes.snowier.zbss.xzy.base;


public enum MsgType {
	
	fallAlarm("01","摔倒报警"),     
	strangeAlarm("02","陌生人脸报警"),  
	behaviorTouch("03","行为-摸头"), 
    ;       

    private String value;
    private String name;
    MsgType(String value,String name) {
		this.value=value;
		this.name=name;
	}
	public String getValue() {
		return value;
	}
	public String getName() {
		return name;
	}
	public static String getOpName(String value) {
		for (MsgType type : MsgType.values()) {
			String strdevicetype = type.getValue();
			if (strdevicetype.equals(value)) {
				return type.getName();
			}
		}
		return "";
	}

}
